package com.bezdelnick.forum.mail.type;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: Bezdelnick
 * Date: 20.07.12
 * Time: 11:53
 * To change this template use File | Settings | File Templates.
 */
public abstract class AbstractMail {
    private String subject;
    private String[] recipients;
    private String sender;
    protected Map<String, Object> context;

    public final Map<String, Object> getContext() {
        return context;
    }

    public abstract String getTemplateName();
    public abstract boolean buildContext(Object object);

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String[] getRecipients() {
        return recipients;
    }

    public void setRecipients(String[] recipients) {
        this.recipients = recipients;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }
}
